package persistence;

import java.io.Serializable;
import javax.persistence.*;

/**
 * The primary key class for the Clients_has_Firm database table.
 * 
 */
@Embeddable
public class Clients_has_FirmPK implements Serializable {
	//default serial version id, required for serializable classes.
	private static final long serialVersionUID = 1L;
	private int clients_idClients;
	private int firm_idFirm;
	private int firm_crd;

    public Clients_has_FirmPK() {
    }

	@Column(name="Clients_idClients")
	public int getClients_idClients() {
		return this.clients_idClients;
	}
	public void setClients_idClients(int clients_idClients) {
		this.clients_idClients = clients_idClients;
	}

	@Column(name="Firm_idFirm")
	public int getFirm_idFirm() {
		return this.firm_idFirm;
	}
	public void setFirm_idFirm(int firm_idFirm) {
		this.firm_idFirm = firm_idFirm;
	}

	@Column(name="Firm_crd")
	public int getFirm_crd() {
		return this.firm_crd;
	}
	public void setFirm_crd(int firm_crd) {
		this.firm_crd = firm_crd;
	}

	public boolean equals(Object other) {
		if (this == other) {
			return true;
		}
		if (!(other instanceof Clients_has_FirmPK)) {
			return false;
		}
		Clients_has_FirmPK castOther = (Clients_has_FirmPK)other;
		return 
			(this.clients_idClients == castOther.clients_idClients)
			&& (this.firm_idFirm == castOther.firm_idFirm)
			&& (this.firm_crd == castOther.firm_crd);

    }
    
	public int hashCode() {
		final int prime = 31;
		int hash = 17;
		hash = hash * prime + this.clients_idClients;
		hash = hash * prime + this.firm_idFirm;
		hash = hash * prime + this.firm_crd;
		
		return hash;
    }
}